{% extends 'base.html' %}

{% block contents %}
<p>Record</p>
[{{ action }}]

{% ifequal action 'view' %}
<p>sAccount:instance.sourceAccount</p>
<p>sRecord:instance.sourceRecord</p>
<p>dAccount:instance.destinationAccount</p>
<p>dRecord:instance.destinationRecord</p>
<p>createdDatetime:instance.createdDatetime</p>
{% endifequal %}

{% ifnotequal action 'view' %}
<form action="/transaction/{{ action }}/{{ object_id }}" method="POST">
{{ cform.as_p }}
<input type="submit" value="Submit" />
</form>
{% endifnotequal %}

{% endblock %}
